#include "SceneManager.h"
#include "Scene/Scene.h"
#include "Time/CPUTimeCounter.h"
 void RSceneManager::Register(RScene *InScene)
 {    
    Scenes.Add(InScene);
 }

 void RSceneManager::UnRegister(RScene *InScene)
 {
    Scenes.Remove(InScene);
 }

void RSceneManager::Tick(float DeltaSeconds) 
{
    CODE_BLOCK_TIME_COUNT(U"场景心跳")
    for(auto&Scene:Scenes)
    {
        Scene->Tick(DeltaSeconds);
    }

} ;